//阶乘算法
var factorial = function(i, a) {
	a = a || 1;
	if(i < 2) {
		return a;
	}
	return factorial(i - 1, a * i);
}

window.onload = () => {}